home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0049.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  2.9 KB  |  104 lines

  1. Willem,
  2.  
  3. Great to see the NIKHEF server on the web!  For others on the list,
  4. see Willem's message below for examples of how to put together
  5. www servers, including indexes, out of simple shell scripts.
  6.  
  7. I have put links to NIKHEF from our home page, and from the subject and  
  8. organisation index.
  9.  
  10. There is one little bug in Xfind: the reference to //nic/ rather than //nic.nl./  
  11. will work for those in the Netherlands but not for the rest of us.
  12. (By the way, xfind is the name of a program by Bernd Pollermann which runs on VM  
  13. ... he might feel that the name is his.)
  14.  
  15. This is a neat server, particularly as it uses existing unix tools and data to  
  16. provide a useful service.... keep up the good work!
  17.  
  18.     Tim BL
  19.  
  20. ______________________________________________________________________
  21. Date: Thu, 20 Feb 92 14:58:11 +0100
  22. From: W.vanLeeuwen@nikhef.nl (Willem van Leeuwen)
  23. Organisation: Nikhef-H (National Institute for Nuclear and High-Energy Physics)
  24. Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
  25. Phone: +31 20 5920411, +31 2995 2499 (home)
  26. Telex: 10262 hef nl
  27. Telefax: +31 20 5925155
  28. To: timbl@nxoc01.cern.ch (Tim Berners-Lee)
  29. Subject: Re: www @ nikhef
  30. Cc: a03@nikhef.nl
  31.  
  32. Hi,
  33.  
  34. There is a very preliminary version of xfind working on a very stupid set
  35. of helpfiles.
  36. These helpfiles are input to a VAX like help, so browsing with www
  37. does not give very useful information, I only want to show that
  38. the principle works.
  39.  
  40. If you want to try you may link NIKHEF into WWW with
  41.  
  42.     http://nic.nikhef.nl./user/a03/www/default/NikhefGuide.html
  43.  
  44. I now have 2 files which can be searched with keywords: the telephone
  45. directory and this set of helpfiles.
  46.  
  47. The http daemon calls the script WWWsh:
  48.  
  49. WWWsh
  50. =====
  51.  
  52. name=`echo $@ | awk -F? '{print $1}`
  53. keys=`echo $@ | awk -F? '{print $2}`
  54. name=`basename $name .html`
  55. /user/a03/bin/$name.sh $keys
  56.  
  57. which may call Phone.sh or Xfind.sh
  58.  
  59. Phone.sh
  60. ========
  61.  
  62. name=$1
  63. echo "<title> $name at NIKHEF</title>"
  64. echo "<h1> $name</h1>"
  65. grep -i $name /user/a03/www/default/phone.html
  66.  
  67. phone.html is a file which is generated every night from the finger
  68. information on our central server.
  69.  
  70. Xfind.sh
  71. ========
  72.  
  73. name=$1
  74. echo "<title> $name at XFIND </title>"
  75. echo "<h1> $name</h1>"
  76. #
  77. # Do not forget to put 
  78.  
  79. #    pass    /user/a03/www/xfind/*
  80. # in httpd.conf
  81. #
  82. cd /user/a03/www/xfind
  83. files=`echo $name | /usr/lib/refer/hunt -Fn -Ty Index`
  84. echo $files | sed -e "s/\///g" | awk '{for (i=1;i<=NF;i++) printf("<a  
  85. href=http://nic/user/a03/www/xfind/%s>%s</a><p>",$i,$i)}'
  86.  
  87. The helpfiles are in a different directory, which has to be mentioned
  88. in httpd.conf.
  89.  
  90. The index is made with the command
  91.  
  92.     /usr/lib/refer/mkey -w -f files | /usr/lib/refer/inv
  93.  
  94. files contains the names of the files to be indexed.
  95. This is a rather crude approach, since the index contains a lot of keywords,
  96. but again the first aim was to get something working.
  97.  
  98. I'll try to write down wy experiences with www in a more coherent way,
  99. until then I hope this information is of some help.
  100.  
  101. Regards, Willem
  102.  
  103.  
  104.